package com.ruoyi.source.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 src_batch_num
 * 
 * @author ruoyi
 * @date 2024-07-31
 */
@TableName("src_batch_num")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SrcBatchNum extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 批次id */
    @TableId(type = IdType.AUTO)
    private Long batchId;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNum;

    /** 货物id */
    @Excel(name = "货物id")
    private Long goodsId;

    /** 批次号绑定类型 0农作物信息 1加工厂信息 */
    @Excel(name = "批次号绑定类型 0农作物信息 1加工厂信息")
    private String goodsType;

    /** 是否删除 0正常 1删除 */
    @Excel(name = "是否删除 0正常 1删除")
    private String isFault;

    public Long getBatchId() {

        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getIsFault() {
        return isFault;
    }

    public void setIsFault(String isFault) {
        this.isFault = isFault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("batchId", getBatchId())
            .append("batchNum", getBatchNum())
            .append("goodsId", getGoodsId())
            .append("goodsType", getGoodsType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("isFault", getIsFault())
            .toString();
    }
}
